import { c } from "./deps/a";
import hot from "./hot";

it("should only register changes for the changed module", async () => {
	expect(hot).toBe(1);
	expect(c()).toBe(42);
	module.hot.accept("./hot");
	await NEXT_HMR();
	expect(hot).toBe(2);
	expect(c()).toBe(42);
});

module.hot.accept("./hot");
